﻿using FigureDraw.Diagram;
using FigureDraw.Graphic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FigureDraw.Shapes.ActivityShape
{
    class ConditionActivity : MyShape
    {
        double width;
        double height;

        public ConditionActivity(double x, double y, double width, double height) : base(x, y)
        {
            this.width = width;
            this.height = height;
        }

        public override void Draw(CommonGraphic graphic)
        {
            graphic.DrawLine(width / 2, y, x, height / 2);
            graphic.DrawLine(width / 2, y, width, height / 2);
            graphic.DrawLine(x, height / 2, width / 2, height);
            graphic.DrawLine(width / 2, height, width, height / 2);
        }

        public override MyShape Clone(BlockDiagram diagram)
        {
            throw new NotImplementedException();
        }
    }
}
